import request from '@/utils/request'

// 查询订单信息
export function getOrderInfo(data) {
  return request({
    url: '/api/orderItem/getOrderInfo',
    method: 'get',
    params: data
  })
}

// 录入待支付商品
export function enterItem(data) {
  return request({
    url: '/api/orderItem/enterItem',
    method: 'get',
    params: data
  })
}

// 确认支付
export function confirmPay(data) {
  return request({
    url: '/api/orderItem/orderPay',
    method: 'get',
    params: data
  })
}

// 获得饼状图数据
export function getPieData() {
  return request({
    url: '/readerBook/pie',
    method: 'get'
  })
}
